package com.st.mq.topic;

import com.st.mq.constant.MqConstant;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @author shent
 */
@Component
@RabbitListener(queues = MqConstant.WOMAN)
public class TopicWomanHandler {
    @RabbitHandler
    public void process(Map msg) {
        System.out.println("Topic-WOMAN 消费者受到" + msg.toString());
    }
}
